<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>i2c: C:/Users/Jon/Downloads/OOP/model/Opportunity.php Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">i2c
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<div class="title">C:/Users/Jon/Downloads/OOP/model/Opportunity.php</div>  </div>
</div>
<div class="contents">
<a href="_opportunity_8php.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 &lt;?php
<a name="l00002"></a>00002 
<a name="l00008"></a><a class="code" href="class_opportunity.html">00008</a> <span class="keyword">class </span><a class="code" href="class_opportunity.html">Opportunity</a> {
<a name="l00009"></a>00009 
<a name="l00010"></a>00010     <span class="comment">//these private variables are only accessible in this class,</span>
<a name="l00011"></a>00011     <span class="comment">//we have to use functions or other methods to use them</span>
<a name="l00012"></a>00012     <span class="keyword">private</span> $opportunityID;
<a name="l00013"></a>00013     <span class="keyword">private</span> $organizationID;
<a name="l00014"></a>00014     <span class="keyword">private</span> $contactID;
<a name="l00015"></a>00015     <span class="keyword">private</span> $title;
<a name="l00016"></a>00016     <span class="keyword">private</span> $numPositionsAvailable;
<a name="l00017"></a>00017     <span class="keyword">private</span> $semester;
<a name="l00018"></a>00018     <span class="keyword">private</span> $payRate;
<a name="l00019"></a>00019     <span class="keyword">private</span> $duration;
<a name="l00020"></a>00020     <span class="keyword">private</span> $responsibilities;
<a name="l00021"></a>00021     <span class="keyword">private</span> $qualifications;
<a name="l00022"></a>00022     <span class="keyword">private</span> $instructions;
<a name="l00023"></a>00023     <span class="keyword">private</span> $comments;
<a name="l00024"></a>00024     <span class="keyword">private</span> $categories;
<a name="l00025"></a>00025     <span class="keyword">private</span> $dateAdded;
<a name="l00026"></a>00026 
<a name="l00027"></a>00027     
<a name="l00028"></a><a class="code" href="class_opportunity.html#a8974dc427835d0ae599a9f5814dce202">00028</a>     <span class="keyword">function</span> <a class="code" href="class_opportunity.html#a8974dc427835d0ae599a9f5814dce202">__construct</a>($organizationID, $contactID, $title, $numPositionsAvailable,
<a name="l00029"></a>00029             $semester, $payRate, $duration, $responsibilities, $qualifications,
<a name="l00030"></a>00030             $instructions, $comments, $categories, $pending, $dateAdded) {
<a name="l00031"></a>00031         $this-&gt;opportunityID = null;
<a name="l00032"></a>00032         $this-&gt;organizationID = $organizationID;
<a name="l00033"></a>00033         $this-&gt;contactID = $contactID;
<a name="l00034"></a>00034         $this-&gt;title = $title;
<a name="l00035"></a>00035         $this-&gt;numPositionsAvailable = $numPositionsAvailable;
<a name="l00036"></a>00036         $this-&gt;semester = $semester;
<a name="l00037"></a>00037         $this-&gt;payRate = $payRate;
<a name="l00038"></a>00038         $this-&gt;duration = $duration;
<a name="l00039"></a>00039         $this-&gt;responsibilities = $responsibilities;
<a name="l00040"></a>00040         $this-&gt;qualifications = $qualifications;
<a name="l00041"></a>00041         $this-&gt;instructions = $instructions;
<a name="l00042"></a>00042         $this-&gt;comments = $comments;
<a name="l00043"></a>00043         $this-&gt;categories = $categories;
<a name="l00044"></a>00044         $this-&gt;pending = $pending;
<a name="l00045"></a>00045         $this-&gt;dateAdded = $dateAdded;
<a name="l00046"></a>00046     }
<a name="l00047"></a>00047 
<a name="l00048"></a><a class="code" href="class_opportunity.html#a17080b6da5fc8404eae1810cc7432bde">00048</a>     <span class="keyword">function</span> <a class="code" href="class_opportunity.html#a17080b6da5fc8404eae1810cc7432bde">setOpportunityID</a>($opportunityID) {
<a name="l00049"></a>00049         $this-&gt;opportunityID = $opportunityID;
<a name="l00050"></a>00050     }
<a name="l00051"></a>00051 
<a name="l00052"></a><a class="code" href="class_opportunity.html#a4f7030b9ff10ece489be6bdb0447962c">00052</a>     <span class="keyword">function</span> <a class="code" href="class_opportunity.html#a4f7030b9ff10ece489be6bdb0447962c">setOrganizationID</a>($organizationID) {
<a name="l00053"></a>00053         $this-&gt;organizationID = $organizationID;
<a name="l00054"></a>00054     }
<a name="l00055"></a>00055 
<a name="l00056"></a><a class="code" href="class_opportunity.html#a2c96bc7fdd22d639ec4662d226aab5ac">00056</a>     <span class="keyword">function</span> <a class="code" href="class_opportunity.html#a2c96bc7fdd22d639ec4662d226aab5ac">setContactID</a>($contactID) {
<a name="l00057"></a>00057         $this-&gt;contactID = $contactID;
<a name="l00058"></a>00058     }
<a name="l00059"></a>00059 
<a name="l00060"></a><a class="code" href="class_opportunity.html#a884ba9bb0d54bde7839e798db7964476">00060</a>     <span class="keyword">function</span> <a class="code" href="class_opportunity.html#a884ba9bb0d54bde7839e798db7964476">setTitle</a>($title) {
<a name="l00061"></a>00061         $this-&gt;title = $title;
<a name="l00062"></a>00062     }
<a name="l00063"></a>00063 
<a name="l00064"></a><a class="code" href="class_opportunity.html#accdb9e506519072e0c826abbf4bc7c88">00064</a>     <span class="keyword">function</span> <a class="code" href="class_opportunity.html#accdb9e506519072e0c826abbf4bc7c88">setNumPostionsAvailable</a>($numPositionsAvailable) {
<a name="l00065"></a>00065         $this-&gt;numPositionsAvailable = $numPositionsAvailable;
<a name="l00066"></a>00066     }
<a name="l00067"></a>00067 
<a name="l00068"></a><a class="code" href="class_opportunity.html#ab51bc7fc84c67bc5d4bb9d54ccf69aeb">00068</a>     <span class="keyword">function</span> <a class="code" href="class_opportunity.html#ab51bc7fc84c67bc5d4bb9d54ccf69aeb">setSemester</a>($semester) {
<a name="l00069"></a>00069         $this-&gt;semester = $semester;
<a name="l00070"></a>00070     }
<a name="l00071"></a>00071 
<a name="l00072"></a><a class="code" href="class_opportunity.html#a6b24255ffb7f16ed0ec1269cf8bdebac">00072</a>     <span class="keyword">function</span> <a class="code" href="class_opportunity.html#a6b24255ffb7f16ed0ec1269cf8bdebac">setPayRate</a>($payRate) {
<a name="l00073"></a>00073         $this-&gt;payRate = $payRate;
<a name="l00074"></a>00074     }
<a name="l00075"></a>00075 
<a name="l00076"></a><a class="code" href="class_opportunity.html#a4d67bc7722e9feb8af0df6ba2125d184">00076</a>     <span class="keyword">function</span> <a class="code" href="class_opportunity.html#a4d67bc7722e9feb8af0df6ba2125d184">setDuration</a>($duration) {
<a name="l00077"></a>00077         $this-&gt;duration = $duration;
<a name="l00078"></a>00078     }
<a name="l00079"></a>00079 
<a name="l00080"></a><a class="code" href="class_opportunity.html#a870d06e1602907aa0f2a96292b0779f3">00080</a>     <span class="keyword">function</span> <a class="code" href="class_opportunity.html#a870d06e1602907aa0f2a96292b0779f3">setResponsibilities</a>($responsibilities) {
<a name="l00081"></a>00081         $this-&gt;responsibilities = $responsibilities;
<a name="l00082"></a>00082     }
<a name="l00083"></a>00083 
<a name="l00084"></a><a class="code" href="class_opportunity.html#af4f0ebfd46b8af2d12d6e23370032b2c">00084</a>     <span class="keyword">function</span> <a class="code" href="class_opportunity.html#af4f0ebfd46b8af2d12d6e23370032b2c">setQualifications</a>($qualifications) {
<a name="l00085"></a>00085         $this-&gt;qualifications = $qualifications;
<a name="l00086"></a>00086     }
<a name="l00087"></a>00087 
<a name="l00088"></a><a class="code" href="class_opportunity.html#a1d6bdaa44da5fb90c3a8ee8ec9253e53">00088</a>     <span class="keyword">function</span> <a class="code" href="class_opportunity.html#a1d6bdaa44da5fb90c3a8ee8ec9253e53">setInstructions</a>($instructions) {
<a name="l00089"></a>00089         $this-&gt;instructions = $instructions;
<a name="l00090"></a>00090     }
<a name="l00091"></a>00091 
<a name="l00092"></a><a class="code" href="class_opportunity.html#a90a8e7be994fe3023c0aa06a5e0a9088">00092</a>     <span class="keyword">function</span> <a class="code" href="class_opportunity.html#a90a8e7be994fe3023c0aa06a5e0a9088">setComments</a>($comments) {
<a name="l00093"></a>00093         $this-&gt;comments = $comments;
<a name="l00094"></a>00094     }
<a name="l00095"></a>00095 
<a name="l00096"></a><a class="code" href="class_opportunity.html#acbba9fb425b4be954aeb9ecd0a5dfd4d">00096</a>     <span class="keyword">function</span> <a class="code" href="class_opportunity.html#acbba9fb425b4be954aeb9ecd0a5dfd4d">setCategories</a>($categories) {
<a name="l00097"></a>00097         $this-&gt;categories = $categories;
<a name="l00098"></a>00098     }
<a name="l00099"></a>00099 
<a name="l00100"></a><a class="code" href="class_opportunity.html#a871aae19fa30cb71f591915cdb08e603">00100</a>     <span class="keyword">function</span> <a class="code" href="class_opportunity.html#a871aae19fa30cb71f591915cdb08e603">setDateAdded</a>($dateAdded) {
<a name="l00101"></a>00101         $this-&gt;dateAdded = $dateAdded;
<a name="l00102"></a>00102     }
<a name="l00103"></a>00103 
<a name="l00104"></a><a class="code" href="class_opportunity.html#a8836a5b15a70e65c9a68c665d7a219f5">00104</a>     <span class="keyword">function</span> <a class="code" href="class_opportunity.html#a8836a5b15a70e65c9a68c665d7a219f5">setPending</a>($pending) {
<a name="l00105"></a>00105         $this-&gt;pending = $pending;
<a name="l00106"></a>00106     }
<a name="l00107"></a>00107 
<a name="l00108"></a><a class="code" href="class_opportunity.html#a449722b43d8b6d32a03c98f65aaef6e1">00108</a>     <span class="keyword">function</span> <a class="code" href="class_opportunity.html#a449722b43d8b6d32a03c98f65aaef6e1">getOpportunityID</a>() {
<a name="l00109"></a>00109         <span class="keywordflow">return</span> $this-&gt;opportunityID;
<a name="l00110"></a>00110     }
<a name="l00111"></a>00111 
<a name="l00112"></a><a class="code" href="class_opportunity.html#afd825169a63db781033d82d33e3e9608">00112</a>     <span class="keyword">function</span> <a class="code" href="class_opportunity.html#afd825169a63db781033d82d33e3e9608">getOrganizationID</a>() {
<a name="l00113"></a>00113         <span class="keywordflow">return</span> $this-&gt;organizationID;
<a name="l00114"></a>00114     }
<a name="l00115"></a>00115 
<a name="l00116"></a><a class="code" href="class_opportunity.html#a6ccb4e7d173263f717d309dd04711fb1">00116</a>     <span class="keyword">function</span> <a class="code" href="class_opportunity.html#a6ccb4e7d173263f717d309dd04711fb1">getContactID</a>() {
<a name="l00117"></a>00117         <span class="keywordflow">return</span> $this-&gt;contactID;
<a name="l00118"></a>00118     }
<a name="l00119"></a>00119 
<a name="l00120"></a><a class="code" href="class_opportunity.html#a95e859a4588a39a1824b717378a84c29">00120</a>     <span class="keyword">function</span> <a class="code" href="class_opportunity.html#a95e859a4588a39a1824b717378a84c29">getTitle</a>() {
<a name="l00121"></a>00121         <span class="keywordflow">return</span> $this-&gt;title;
<a name="l00122"></a>00122     }
<a name="l00123"></a>00123 
<a name="l00124"></a><a class="code" href="class_opportunity.html#a005d35fb0e3a31a9f9f3a5061c6f9c4e">00124</a>     <span class="keyword">function</span> <a class="code" href="class_opportunity.html#a005d35fb0e3a31a9f9f3a5061c6f9c4e">getNumPositionsAvailable</a>() {
<a name="l00125"></a>00125         <span class="keywordflow">return</span> $this-&gt;numPositionsAvailable;
<a name="l00126"></a>00126     }
<a name="l00127"></a>00127 
<a name="l00128"></a><a class="code" href="class_opportunity.html#a12a4588305c97746c281e1cda69e474a">00128</a>     <span class="keyword">function</span> <a class="code" href="class_opportunity.html#a12a4588305c97746c281e1cda69e474a">getSemester</a>() {
<a name="l00129"></a>00129         <span class="keywordflow">return</span> $this-&gt;semester;
<a name="l00130"></a>00130     }
<a name="l00131"></a>00131 
<a name="l00132"></a><a class="code" href="class_opportunity.html#aab6cd314c666eaa69e0ab43424d4a488">00132</a>     <span class="keyword">function</span> <a class="code" href="class_opportunity.html#aab6cd314c666eaa69e0ab43424d4a488">getPayRate</a>() {
<a name="l00133"></a>00133         <span class="keywordflow">return</span> $this-&gt;payRate;
<a name="l00134"></a>00134     }
<a name="l00135"></a>00135 
<a name="l00136"></a><a class="code" href="class_opportunity.html#ab46fe3d2750728c84bd71ae1bfd08ee8">00136</a>     <span class="keyword">function</span> <a class="code" href="class_opportunity.html#ab46fe3d2750728c84bd71ae1bfd08ee8">getDuration</a>() {
<a name="l00137"></a>00137         <span class="keywordflow">return</span> $this-&gt;duration;
<a name="l00138"></a>00138     }
<a name="l00139"></a>00139 
<a name="l00140"></a><a class="code" href="class_opportunity.html#aa1822a8df89eb25af7a3d6c30504fbfb">00140</a>     <span class="keyword">function</span> <a class="code" href="class_opportunity.html#aa1822a8df89eb25af7a3d6c30504fbfb">getResponsibilities</a>() {
<a name="l00141"></a>00141         <span class="keywordflow">return</span> $this-&gt;responsibilities;
<a name="l00142"></a>00142     }
<a name="l00143"></a>00143 
<a name="l00144"></a><a class="code" href="class_opportunity.html#ae9d687559552980a818c7b8e319c6c79">00144</a>     <span class="keyword">function</span> <a class="code" href="class_opportunity.html#ae9d687559552980a818c7b8e319c6c79">getQualifications</a>() {
<a name="l00145"></a>00145         <span class="keywordflow">return</span> $this-&gt;qualifications;
<a name="l00146"></a>00146     }
<a name="l00147"></a>00147 
<a name="l00148"></a><a class="code" href="class_opportunity.html#a426db1e75550aadaf15e5cc66867c863">00148</a>     <span class="keyword">function</span> <a class="code" href="class_opportunity.html#a426db1e75550aadaf15e5cc66867c863">getInstructions</a>() {
<a name="l00149"></a>00149         <span class="keywordflow">return</span> $this-&gt;instructions;
<a name="l00150"></a>00150     }
<a name="l00151"></a>00151 
<a name="l00152"></a><a class="code" href="class_opportunity.html#af3034ead082330d2c046a69814009808">00152</a>     <span class="keyword">function</span> <a class="code" href="class_opportunity.html#af3034ead082330d2c046a69814009808">getComments</a>() {
<a name="l00153"></a>00153         <span class="keywordflow">return</span> $this-&gt;comments;
<a name="l00154"></a>00154     }
<a name="l00155"></a>00155 
<a name="l00156"></a><a class="code" href="class_opportunity.html#a8729ba486702e7e12a3fff08965e1e7f">00156</a>     <span class="keyword">function</span> <a class="code" href="class_opportunity.html#a8729ba486702e7e12a3fff08965e1e7f">getCategories</a>() {
<a name="l00157"></a>00157         <span class="keywordflow">return</span> $this-&gt;categories;
<a name="l00158"></a>00158     }
<a name="l00159"></a>00159 
<a name="l00160"></a><a class="code" href="class_opportunity.html#adc1635bbad00a8f587932225205b395f">00160</a>     <span class="keyword">function</span> <a class="code" href="class_opportunity.html#adc1635bbad00a8f587932225205b395f">getDateAdded</a>() {
<a name="l00161"></a>00161         <span class="keywordflow">return</span> $this-&gt;dateAdded;
<a name="l00162"></a>00162     }
<a name="l00163"></a>00163 
<a name="l00164"></a><a class="code" href="class_opportunity.html#aadb0ba1a3a04e15bbd2a32cd48a0288b">00164</a>     <span class="keyword">function</span> <a class="code" href="class_opportunity.html#aadb0ba1a3a04e15bbd2a32cd48a0288b">getPending</a>() {
<a name="l00165"></a>00165         <span class="keywordflow">return</span> $this-&gt;pending;
<a name="l00166"></a>00166     }
<a name="l00167"></a>00167 
<a name="l00168"></a><a class="code" href="class_opportunity.html#a50adc8e1bb62e94c4adde487f4523196">00168</a>     <span class="keyword">function</span> <a class="code" href="class_opportunity.html#a50adc8e1bb62e94c4adde487f4523196">printAllAttributes</a>() {
<a name="l00169"></a>00169         $output = sprintf(<span class="stringliteral">&quot;Organization ID: %d, Contact ID: %d, Title: %s,</span>
<a name="l00170"></a>00170 <span class="stringliteral">            Number of Positions Available: %d, Semester: %s, Pay Rate: %s,</span>
<a name="l00171"></a>00171 <span class="stringliteral">            Duration: %s, Responsibilities: %s, Qualifications: %s,</span>
<a name="l00172"></a>00172 <span class="stringliteral">            Instructions: %s, Comments: %s, Categories: %s, Pending %s,</span>
<a name="l00173"></a>00173 <span class="stringliteral">            Date Added: %d.&quot;</span>,
<a name="l00174"></a>00174                         $this-&gt;organizationID, $this-&gt;contactID, $this-&gt;title,
<a name="l00175"></a>00175                         $this-&gt;numPositionsAvailable, $this-&gt;semester,
<a name="l00176"></a>00176                         $this-&gt;payrate, $this-&gt;duration, $this-&gt;responsibilities,
<a name="l00177"></a>00177                         $this-&gt;qualifications, $this-&gt;instructions,
<a name="l00178"></a>00178                         $this-&gt;comments, $this-&gt;categories, $this-&gt;pending,
<a name="l00179"></a>00179                         $this-&gt;dateAdded);
<a name="l00180"></a>00180         <span class="keywordflow">return</span> $output;
<a name="l00181"></a>00181     }
<a name="l00182"></a>00182 
<a name="l00183"></a>00183 }
<a name="l00184"></a>00184 
<a name="l00185"></a>00185 ?&gt;
</pre></div></div>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Tue Nov 29 2011 18:18:55 for i2c by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5.1
</small></address>

</body>
</html>
